/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ems.service;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.ems.dao.EmsOrderDao;
import com.thinkgem.jeesite.modules.ems.entity.EmsOrder;

/**
 * 订单Service
 * @author zad
 * @version 2018-01-25
 */
@Service
@Transactional(readOnly = true)
public class EmsOrderService extends CrudService<EmsOrderDao, EmsOrder> {

	public EmsOrder get(String id) {
		return super.get(id);
	}
	
	public List<EmsOrder> findList(EmsOrder emsOrder) {
		return super.findList(emsOrder);
	}
	
	public Page<EmsOrder> findPage(Page<EmsOrder> page, EmsOrder emsOrder) {
		return super.findPage(page, emsOrder);
	}
	
	@Transactional(readOnly = false)
	public void save(EmsOrder emsOrder) {
		super.save(emsOrder);
	}
	
	@Transactional(readOnly = false)
	public void delete(EmsOrder emsOrder) {
		super.delete(emsOrder);
	}
	
	// 收款人总表
	public List<Map<String,String>> cashierTotalMoney()
	{
		return dao.cashierTotalMoney();
	}
	// 收款人日表
	public List<Map<String,String>> cashierDayMoney(Map<String,String> param)
	{
		return dao.cashierDayMoney(param);
	}
	
	// 报名人信息统计
	public Map<String,String> emsUserTotalCost(EmsOrder order)
	{
		return dao.emsUserTotalCost(order);
	}
}